﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	הוסף תגובה
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>הוסף תגובה</h2>
  <% using (Html.BeginForm("CreateFeedback", "Forum"))
           {%>
        <fieldset>
            <legend>הוסף תגובה</legend>
            <% Response.Write("<input type=\"hidden\" value=\"" + ViewData["type"]  +"\" name=\"type\"/>");%>
            <% Response.Write("<input type=\"hidden\" value=\"" + ViewData["parentId"] + "\" name=\"parent_id\"/>");%>
            <p>
            
                <span>
                    <label for="username">
                        שם:</label>
                    <%= Html.TextBox("username") %>
                <%= Html.ValidationMessage("username")%>
                </span>
                
                <span>
                    <label for="city">
                        עיר:</label>
                    <%= Html.TextBox("city") %>
                <%= Html.ValidationMessage("city")%>
                </span>
            </p>
            <div>
                <p>
                    <label for="title">
                        כותרת:</label>
                    <%= Html.TextBox("title") %>
                    <%= Html.ValidationMessage("title") %>
                 <%= Html.ValidationMessage("title")%>
                </p>
                <p>
                    <%= Html.TextArea("text", new {cols="45", rows="10" })%>
                    <%= Html.ValidationMessage("text") %>
                </p>
            </div>
            <div class="floatleft">
                <span class="feedbackButton">
                    <input type="submit" value="פרסם" /></span> <span class="feedbackCloseButton">
                        <input type="button" value="סגור" onclick="Close()" /></span>
            </div>
        </fieldset>
        <% } %>
</asp:Content>

